/*
 * Copyright (c) 2006, 2022, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

import java.util.*;

/**
 * <p>Project: javase2203 - Arr9
 * <p>Powered by webrx On 2022-07-12 16:14:59
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class Arr9 {
    public static void main(String[] args) {
        String[] ks = {"星期日","星期一","星期二","星期三","星期四","星期五","星期六"};
        Date d = new Date();
        System.out.println(ks[d.getDay()]);//0-6

        Calendar c = Calendar.getInstance();
        int k = c.get(Calendar.DAY_OF_WEEK)-1;//1-7
        System.out.println(ks[k]);

    }
}
